import {Icon, Input} from 'antd';

const Search = Input.Search;

const AntSearch = ({placeholder, onClick,onChange,defaultValue}: { placeholder?: string }) => (
    <Search placeholder={placeholder}
            onChange={onChange}
            onSearch={onClick}
            defaultValue={defaultValue}
            enterButton={<Icon type="search"  style={{fontSize: '1.5rem'}}/>}
            size="large"
    />
);

export default AntSearch